package com.ruoyi.web.tdm.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdm.mapper.TdmKangZhongLiuYaoWuMapper;
import com.ruoyi.web.tdm.domain.TdmKangZhongLiuYaoWu;
import com.ruoyi.web.tdm.service.ITdmKangZhongLiuYaoWuService;

/**
 * ID-05 -21 -36 抗肿瘤药物Service业务层处理
 * 
 * @author ly
 * @date 2022-03-11
 */
@Service
public class TdmKangZhongLiuYaoWuServiceImpl implements ITdmKangZhongLiuYaoWuService 
{
    @Autowired
    private TdmKangZhongLiuYaoWuMapper tdmKangZhongLiuYaoWuMapper;

    /**
     * 查询ID-05 -21 -36 抗肿瘤药物
     * 
     * @param id ID-05 -21 -36 抗肿瘤药物主键
     * @return ID-05 -21 -36 抗肿瘤药物
     */
    @Override
    public TdmKangZhongLiuYaoWu selectTdmKangZhongLiuYaoWuById(Long id)
    {
        return tdmKangZhongLiuYaoWuMapper.selectTdmKangZhongLiuYaoWuById(id);
    }

    /**
     * 查询ID-05 -21 -36 抗肿瘤药物列表
     * 
     * @param tdmKangZhongLiuYaoWu ID-05 -21 -36 抗肿瘤药物
     * @return ID-05 -21 -36 抗肿瘤药物
     */
    @Override
    public List<TdmKangZhongLiuYaoWu> selectTdmKangZhongLiuYaoWuList(TdmKangZhongLiuYaoWu tdmKangZhongLiuYaoWu)
    {
        return tdmKangZhongLiuYaoWuMapper.selectTdmKangZhongLiuYaoWuList(tdmKangZhongLiuYaoWu);
    }

    /**
     * 新增ID-05 -21 -36 抗肿瘤药物
     * 
     * @param tdmKangZhongLiuYaoWu ID-05 -21 -36 抗肿瘤药物
     * @return 结果
     */
    @Override
    public int insertTdmKangZhongLiuYaoWu(TdmKangZhongLiuYaoWu tdmKangZhongLiuYaoWu)
    {
        tdmKangZhongLiuYaoWu.setCreateTime(DateUtils.getNowDate());
        return tdmKangZhongLiuYaoWuMapper.insertTdmKangZhongLiuYaoWu(tdmKangZhongLiuYaoWu);
    }

    /**
     * 修改ID-05 -21 -36 抗肿瘤药物
     * 
     * @param tdmKangZhongLiuYaoWu ID-05 -21 -36 抗肿瘤药物
     * @return 结果
     */
    @Override
    public int updateTdmKangZhongLiuYaoWu(TdmKangZhongLiuYaoWu tdmKangZhongLiuYaoWu)
    {
        tdmKangZhongLiuYaoWu.setUpdateTime(DateUtils.getNowDate());
        return tdmKangZhongLiuYaoWuMapper.updateTdmKangZhongLiuYaoWu(tdmKangZhongLiuYaoWu);
    }

    /**
     * 批量删除ID-05 -21 -36 抗肿瘤药物
     * 
     * @param ids 需要删除的ID-05 -21 -36 抗肿瘤药物主键
     * @return 结果
     */
    @Override
    public int deleteTdmKangZhongLiuYaoWuByIds(Long[] ids)
    {
        return tdmKangZhongLiuYaoWuMapper.deleteTdmKangZhongLiuYaoWuByIds(ids);
    }

    /**
     * 删除ID-05 -21 -36 抗肿瘤药物信息
     * 
     * @param id ID-05 -21 -36 抗肿瘤药物主键
     * @return 结果
     */
    @Override
    public int deleteTdmKangZhongLiuYaoWuById(Long id)
    {
        return tdmKangZhongLiuYaoWuMapper.deleteTdmKangZhongLiuYaoWuById(id);
    }
}
